C++ compile time error: expected identifier before numeric constant
You cannot do this:
|
|
in a class outside of a method.
You can initialize the data members at the point of declaration, but not with () brackets:
|
|
Before C++11, you need to declare them first, then initialize them e.g in a contructor
|
|